# @index_view.before_request
# def authentication(app):
#     """
#      前置请求过滤器
#     """
#     if request.authorization:
#         g.user = request.authorization['username']
#     else:
#         logger.info("匿名用户")
#         g.user = 'Anonymous'